using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace c_
{
    public class NewClass
    {
         public class Graph
    {
        public float sideA,sideB,sideBottom,height;
        public float len,width;
        public float r;
        public void triangle(float a,float b,float sideBottom,float height)
        {
            this.sideA = a;
            this.sideB = b;
            this.sideBottom = sideBottom;
            this.height = height;
            Console.WriteLine($"三角形边长：{this.sideA+this.sideB+this.sideBottom};三角形面积：{(this.sideBottom*this.height)/2}");
        }
        public void square(float len,float width)
        {
            this.len = len;
            this.width = width;
            Console.WriteLine($"四边形周长：{(this.len+this.width)*2};四边形面积：{this.len*this.width}");
        }
        public void circle(float r)
        {
            this.r = r;
            Console.WriteLine($"圆周长：{2*3.14*r};圆面积{3.14*r*r}");
        }
    }
    }
    }
